<template>
  <div>
    <van-row>
            <van-col span="6">
                <left/>
            </van-col>
            <van-col span="18">
                <van-row>
                    <van-col span="24"><headers/></van-col>
                </van-row>
                <van-row>
                    <van-uploader :after-read="upload">导入
</van-uploader>
                    </van-row>
            </van-col>
    </van-row>
</div>
</template>

<script>
import axios from 'axios'
import headers from '@/components/comm/headers'
import left from '@/components/comm/left'
export default {
    components:{
        "headers":headers,
        "left":left

       
    },
    methods:{
        upload(file){
            let formData=new FormData()
            formData.append('file',file.file)
            axios({url:"upload",method:"post",data:formData}).then(res=>{
                console.log(res);
    })
}
}


}
</script>

<style>

</style>